home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / human interface toolbox / fragment tool / dialogstuff.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  2.0 KB  |  122 lines

  1. /*
  2.     File:        DialogStuff.h
  3.  
  4.     Contains:    Handle application's dialogs
  5.  
  6.     Written by: Chris White    
  7.  
  8.     Copyright:    Copyright © 1995-1999 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.                 8/5/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  20.                 
  21.  
  22. */
  23.  
  24.  
  25. #ifndef __DIALOGSTUFF__
  26. #define __DIALOGSTUFF__
  27.  
  28.  
  29.  
  30.  
  31.  
  32. #ifndef __FRAGMENTSTUFF__
  33.     #include "FragmentStuff.h"
  34. #endif
  35.  
  36.  
  37.  
  38.  
  39.  
  40. struct AddFragmentExportsRecOut
  41. {
  42.     FSSpecPtr    theSpecPtr;
  43.     tItemPtr    theItem;
  44. };
  45.  
  46.  
  47.  
  48. struct AddFragmentExportsRecIn
  49. {
  50.     StringPtr    theErrorStr;
  51. };
  52.  
  53.  
  54.  
  55. typedef struct AddFragmentExportsRec
  56. {
  57.     Boolean        bIn;
  58.     union
  59.     {
  60.         struct AddFragmentExportsRecOut    out;
  61.         struct AddFragmentExportsRecIn    in;
  62.     } u;
  63.   
  64. } tAddFragmentExportsRec;
  65.  
  66.  
  67.  
  68.  
  69. enum
  70. {
  71.     // List Dialog Constants
  72.     
  73.     kListDialogOkay = 2000,
  74.     kListDialogOkayCancel = 2001,
  75.     
  76.         // kStdOkItemIndex
  77.         // kStdCancelItemIndex
  78.         kListUserItem = 3
  79. };
  80.  
  81.  
  82.  
  83.  
  84. enum
  85. {
  86.     // Info Dialog Constants
  87.     
  88.     kInfoDialog = 2002,
  89.         // kStdOkItemIndex
  90.         // kStdCancelItemIndex
  91.         kNameEditText = 3,
  92.         kArchitectureStaticText,
  93.         kUpdateLevelPopup,
  94.         kCurrentMajorEditText,
  95.         kCurrentMinorEditText,
  96.         kCurrentBugRevEditText,
  97.         kCurrentStagePopup,
  98.         kCurrentNonRelEditText,
  99.         kOldMajorEditText,
  100.         kOldMinorEditText,
  101.         kOldBugRevEditText,
  102.         kOldStagePopup,
  103.         kOldNonRelEditText,
  104.         kStackSizeEditText,
  105.         kSubFolderIDEditText,
  106.         kUsagePopup,
  107.         kLocationStaticText,
  108.         kOffsetStaticText,
  109.         kLengthStaticText
  110.         
  111. };
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119. #endif // define __DIALOGSTUFF__
  120.  
  121.  
  122.